package com.zretc.entity;

import org.springframework.stereotype.Component;

@Component
public class ActorMovie {
    //演员电影关系id
    private String actorMovieId;
    //关联电影对象
    private Movie movie;
    //关联演员对象
    private Actor actor;

    public ActorMovie() {
    }

    public ActorMovie(String actorMovieId, Movie movie, Actor actor) {
        this.actorMovieId = actorMovieId;
        this.movie = movie;
        this.actor = actor;
    }

    public String getActorMovieId() {
        return actorMovieId;
    }

    public void setActorMovieId(String actorMovieId) {
        this.actorMovieId = actorMovieId;
    }

    public Movie getMovie() {
        return movie;
    }

    public void setMovie(Movie movie) {
        this.movie = movie;
    }

    public Actor getActor() {
        return actor;
    }

    public void setActor(Actor actor) {
        this.actor = actor;
    }

    @Override
    public String toString() {
        return "ActorMovie{" +
                "actorMovieId='" + actorMovieId + '\'' +
                ", movie=" + movie +
                ", actor=" + actor +
                '}';
    }
}
